-------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /homes/nber/jetson-dua57641/gruber-DUA57641/jetson-dua57641/ambula
> nce/replication/logs/describe_enforcement.log
  log type:  text
 opened on:  16 Jul 2024, 14:49:53

. 
. /****************************************************************************
> ***
> describe_enforcement.do
> 
> This code reports the number of and payments to sued firms
> *****************************************************************************
> **/
. 
. use "${cleandatapath}ambulancetaxis_firmpanel_enforcement.dta", clear

. 
. qui keep if !mi(firmenforcementtype_civil)

. 
. gen firmenforcementmonth = mofd(firmenforcementdate)

. 
. bysort npi: gen uniquefirm = _n == 1 

. 
. collapse (sum) linepmt uniquefirm

. 
. gen pmt_per=(linepmt/0.2)/uniquefirm

. 
. list // Referenced in Section 6.3, Paragraph 1 and Appendix J.2, Bullet 5

     +----------------------------------+
     |     linepmt   unique~m   pmt_per |
     |----------------------------------|
  1. | 69912034.63         65   5377849 |
     +----------------------------------+

. 
. log close
      name:  <unnamed>
       log:  /homes/nber/jetson-dua57641/gruber-DUA57641/jetson-dua57641/ambula
> nce/replication/logs/describe_enforcement.log
  log type:  text
 closed on:  16 Jul 2024, 14:49:53
-------------------------------------------------------------------------------
